This version supports a special custom weapon type - hat. You can create a hat by setting the "logicalid" in the weapon XML to 81. For example the icon and XML file included in this folder work perfectly with the hat model from there: http://www.gtainside.com/download.php?do=comments&cat=118&start=1708&id=26189

It's also possible to adjust hat info (inside "weapon" section). For example to fit the cap from there: http://www.gtagarage.com/mods/show.php?id=11473

CODE
   <hatinfo>
       <isrelative>true</isrelative>
       <scale>1.15</scale>
       <offset>
           <x>0.009</x>
           <y>0.0</y>
           <z>0.0</z>
       </offset>
       <rotation>
           <x>0.0</x>
           <y>0.0</y>
           <z>0.0</z>
       </rotation>
   </hatinfo>

"isrelative" says whether the values are relative to the offsets used in SA hat files, so if that's set to true, then zero offset and zero rotation should make hats from SA clothing files show up in the right place.

This:
CODE
   <hatinfo>
       <isrelative>true</isrelative>
       <scale>1.0</scale>
       <offset>
           <x>0.0</x>
           <y>0.0</y>
           <z>0.0</z>
       </offset>
       <rotation>
           <x>0.0</x>
           <y>0.0</y>
           <z>0.0</z>
       </rotation>
   </hatinfo>

is equal to:
CODE
   <hatinfo>
       <isrelative>false</isrelative>
       <scale>1.0</scale>
       <offset>
           <x>-0.02268</x>
           <y>0.00531</y>
           <z>-0.58912</z>
       </offset>
       <rotation>
           <x>90.0</x>
           <y>0.0</y>
           <z>90.0</z>
       </rotation>
   </hatinfo>


You should set "isrelative" to false when the file is not in SA format and the center of the model should be at the center of the head. 